package com.wxsong.authplatform.authweb.test.mybatis_spring.dao;

import com.wxsong.authplatform.authweb.test.mybatistest.Users;
import org.mybatis.spring.support.SqlSessionDaoSupport;

public class UserDaoImpl extends SqlSessionDaoSupport implements UserDao{

    @Override
    public Users get(int id){
        Users users = getSqlSession().selectOne("selectUser", id);
        return users;
    }

    @Override
    public int insert(Users users){
        int i = getSqlSession().insert("insertUser", users);
        return i;
    }
}
